package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
	"PaySalary/ModelImplementation"
)

type ChangeHourlyTransaction struct {
	AbstractTransactions.ChangeClassificationTransaction
	itsHourlyRate float64
}

func (cht *ChangeHourlyTransaction) NewChangeHourlyTransaction(empid int, hourlyRate float64) {
	cht.ChangeClassificationTransaction.NewChangeClassificationTransaction(empid)
	cht.itsHourlyRate = hourlyRate
}

func (cht *ChangeHourlyTransaction)GetClassification() Model.PaymentClassification {
	return ModelImplementation.NewHourlyClassification(cht.itsHourlyRate)
}

func (cht *ChangeHourlyTransaction) GetSchedule() Model.PaymentSchedule {
	return ModelImplementation.WeeklySchedule{}
}